import { Form, Input } from "antd-mobile"
import { useState } from "react"

function InputContent(props: any) {
    const [value, setValue] = useState("")
    return (
        <>
            {props.show && <Form.Item
                name={`${props.name}Con`}
                rules={[{ required: true, message: '请输入' }]}
            >
                <Input
                    placeholder='请输入'
                    style={{ "background": "#F6F8FA", "width": "320px", "height": "35px", "marginLeft": "15px" }}
                    value={value}
                    onChange={val => {
                        // console.log(val)
                        setValue(val)
                    }}
                />
            </Form.Item>}
        </>
    )
}
export default InputContent